﻿@using BonjourQuotation.UI.Models.SetupModel
@model SetupCompanyDetailsViewModel
@{
    
}
@using (@Html.BeginForm("SaveCompanyDetailData", "Setup", FormMethod.Post, new { id = "LoadCompanyDetailsForm" }))
{
    <div id="ErrorMessagesDivPopUp">
        <label for="Validation" id="errorMessageClient" class="errorMessage"></label>
        @if (Model.Message != null)
        {
            @Html.LabelForModel(Model.Message, new { @class = "errorMessage", id = "errorMessageServer" })
        }
    </div>
    
    @Html.HiddenFor(model=>model.CompanyID)
    @Html.HiddenFor(model => model.SelectedCity)
    <div class="pull-right" style="margin-bottom:15px;">
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.CompanyName)</span>
                    @Html.TextBoxFor(model => model.CompanyName, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength50 Required" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.CompanyCode)</span>
                    @Html.TextBoxFor(model => model.CompanyCode, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength20 Required" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Phone800)</span>
                    @Html.TextBoxFor(model => model.Phone800, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control phoneUS" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Address)</span>
                    @Html.TextBoxFor(model => model.Address, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4" id="CityDiv" @((Model.SelectedStateID == "" || Model.SelectedStateID == null) ? new { @style = "Display:None" } : new { @style = "Display:block" })>
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.CityID)</span>
                    @Html.DropDownListFor(model => model.CityID, new SelectList(Model.City, "Value", "Text"), "Select", new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation CityDrop" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4" id="CityDivChange" @((Model.SelectedStateID == "" || Model.SelectedStateID == null) ? new { @style = "Display:block" } : new { @style = "Display:None" })>
            </div>
            <div class="ElementsPaddingRight30 col-lg-2" id="StateDiv">
                <div class="input-group">
                    @Html.DropDownListFor(model => model.SelectedStateID, new SelectList(Model.StateID, "Value", "Text"), "Select", new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation StateDrop" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-2">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.PostalCode)</span>
                    @Html.TextBoxFor(model => model.PostalCode, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength20" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.PhoneNumber)</span>
                    @Html.TextBoxFor(model => model.PhoneNumber, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control phoneUS" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.FaxNumber)</span>
                    @Html.TextBoxFor(model => model.FaxNumber, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control phoneUS" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Resume_Gui)</span>
                    @Html.TextBoxFor(model => model.Resume_Gui, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.FedID)</span>
                    @Html.TextBoxFor(model => model.FedID, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength20" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.ProposalDir)</span>
                    @Html.TextBoxFor(model => model.ProposalDir, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Resume_Emp)</span>
                    @Html.TextBoxFor(model => model.Resume_Emp, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Brochure_Htl)</span>
                    @Html.TextBoxFor(model => model.Brochure_Htl, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Brochure_Rst)</span>
                    @Html.TextBoxFor(model => model.Brochure_Rst, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Brochure_Oth)</span>
                    @Html.TextBoxFor(model => model.Brochure_Oth, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Contract_Htl)</span>
                    @Html.TextBoxFor(model => model.Contract_Htl, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Contract_Rst)</span>
                    @Html.TextBoxFor(model => model.Contract_Rst, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Contract_Oth)</span>
                    @Html.TextBoxFor(model => model.Contract_Oth, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength100" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.IsActive)</span>
                    @Html.CheckBoxFor(model => model.IsActive, new { @class = "CompanyDetailsElementChange" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">Unformatted:</span>
                    <input type="checkbox" id="PhoneNumberUnformatted">
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-12">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.InvComm)</span>
                    @Html.TextAreaFor(model => model.InvComm, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-12">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.ProComm)</span>
                    @Html.TextAreaFor(model => model.ProComm, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-12">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Notes)</span>
                    @Html.TextAreaFor(model => model.Notes, new { @class = "CompanyDetailsElementChange table_inputs_SmallPadding2 inpputgr form-control" })
                </div>
            </div>
        </div>
        <div class="SaveCancelDiv">
            <button class="btn14 btn50" type="button" onclick="$('#cboxClose').click()">Cancel</button>
            @if (Model.MenuSetupCompanyEdit)
            {
                <button class="btn14 btn50" type="button" id="CompanyDetailsSaveBtn">Save</button>
            }
            else
            {
                <button class="btn14 btn50 disabled" type="button" disabled="disabled" id="CompanyDetailsSaveBtn">Save</button>
            }
        </div>
    </div>
}





